<html>
<head><meta charset="utf-8"><title>llvm debugging / assertions · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/llvm.20debugging.20.2F.20assertions.html">llvm debugging / assertions</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="200771783"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/llvm%20debugging%20/%20assertions/near/200771783" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/llvm.20debugging.20.2F.20assertions.html#200771783">(Jun 13 2020 at 15:30)</a>:</h4>
<p>Tracing down an AVR bug, I compiled LLVM with debugging and with assertions. Then I made some changes to <code>src/librustc_codegen_llvm/common.rs</code>. The stage1 build was taking forever, and then I realized that it's likely because of the non-release LLVM.</p>
<p>Is there any great solution to compiling in a reasonable time, or should I switch LLVM to release+debugsymbols?</p>



<a name="204079418"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/llvm%20debugging%20/%20assertions/near/204079418" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/llvm.20debugging.20.2F.20assertions.html#204079418">(Jul 16 2020 at 13:02)</a>:</h4>
<p>release + debuginfo, and assertions, should be fine</p>



<a name="204079501"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/llvm%20debugging%20/%20assertions/near/204079501" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/llvm.20debugging.20.2F.20assertions.html#204079501">(Jul 16 2020 at 13:03)</a>:</h4>
<p>but also you don't want to build the compiler twice if you're testing around LLVM, unless building rustc itself triggers the bug</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>